<template>
  <div>
    <div id="main" style="width: 600px; height: 400px"></div>
  </div>
</template>

<script>
import * as echarts from "echarts";
import axios from "@/tool/axios";
export default {
  mounted() {

    this.getTu();
  },

  methods: {
    async getTu(){
        let res = await axios.get('reports/type/1')
        var myChart = echarts.init(document.getElementById("main"));
        myChart.setOption(res.data);
     }
  },
};
</script>

<style lang="scss" scoped>
</style>
